An embedded wallet born on Ethereum cannot pay for anything here - #231
Merged
Conversation
The Privy provider never named a chain, so every embedded wallet it mints was
created on Ethereum mainnet. That is the same failure the owner hit in the OKX
browser an hour ago, arriving from the other direction: a real wallet, a real
key, and the wrong network — so it can neither pay for a Season Pass nor, once
season payouts start reaching embedded wallets, be somewhere the money is
useful.
defaultChain: celo the chain an embedded wallet is CREATED on
supportedChains: [celo] the list an EXTERNAL wallet is asked to be in
Both, because the gate offers both kinds of sign-in and neither should land
somewhere the game cannot transact.
`celo` is imported from viem/chains — the same object lib/WagmiIsland.tsx hands
wagmi — so the two halves of the app cannot drift onto different ideas of which
network this game runs on.
This is a prerequisite for paying through Privy, not the whole of it: a fresh
embedded wallet still holds nothing, and buying a $1 item means transferring $1
of real USDT. The funding question is the owner's to answer and is not decided
here.
Verified: tsc clean, build unchanged at 142/242 kB, 24/24 test:privy,
check:copy clean, lint 35.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017A764RdnwpyWnG7uCNhMiQ
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Privy provider never named a chain, so every embedded wallet it mints was created on Ethereum mainnet.
That is the same failure the owner hit in the OKX browser an hour ago, arriving from the other direction: a real wallet, a real key, and the wrong network — so it can neither pay for a Season Pass nor, once season payouts start reaching embedded wallets, be somewhere the money is useful.
Both, because the gate offers both kinds of sign-in and neither should land somewhere the game cannot transact.
celois imported fromviem/chains— the same objectlib/WagmiIsland.tsxhands wagmi — so the two halves of the app cannot drift onto different ideas of which network this game runs on.This is a prerequisite, not the whole thing
Paying through Privy needs one more piece, and it is a product decision rather than a code one: a fresh embedded wallet holds nothing. Buying a $1 item means transferring $1 of real USDT to the treasury. Gas sponsorship would not help — that covers the fee, not the price.
Raised for the owner rather than guessed at.
Testing
Generated by Claude Code